home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 12 / BBS in a box XII-2.iso / Files II / Prog / B-C / CPixMap.sit / ColorBitMap.note
MacBinary  |  1994-04-14  |  2.6 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: ColorBitMap.note

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Thu Apr 14 12:12:30 1994, modified Thu Apr 14 12:12:30 1994, creator Think C, type ASCII, 2088 bytes " ColorBitMap.note" , at 0x8a8 382 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 12 20 20 43 6f 6c 6f | 72 42 69 74 4d 61 70 2e |.. Colo|rBitMap.|
|00000010| 6e 6f 74 65 00 00 00 00 | 00 00 00 00 00 00 00 00 |note....|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 08 28 00 | 00 01 7e a9 d3 1b ee a9 |......(.|..~.....|
|00000060| d3 1b ee 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 13 4e 00 00 |........|.....N..|
|00000080| 2f 2a 2a 20 22 43 6f 6c | 6f 72 42 69 74 4d 61 70 |/** "Col|orBitMap|
|00000090| 2e 6e 6f 74 65 22 20 2a | 2a 2f 0d 0d 0d 0d 2f 2a |.note" *|*/..../*|
|000000a0| 0d 09 48 65 6c 6c 6f 20 | 2e 2e 2e 0d 09 0d 09 54 |..Hello |.......T|
|000000b0| 68 65 20 70 72 69 6e 63 | 69 70 61 6c 20 66 6f 63 |he princ|ipal foc|
|000000c0| 75 73 20 6f 66 20 74 68 | 65 20 6f 74 68 65 72 20 |us of th|e other |
|000000d0| 66 69 6c 65 73 20 69 73 | 20 74 6f 20 4f 56 45 52 |files is| to OVER|
|000000e0| 52 49 44 45 20 74 68 65 | 20 54 48 49 4e 4b 20 43 |RIDE the| THINK C|
|000000f0| 6c 61 73 73 0d 09 4c 69 | 62 72 61 72 79 27 73 20 |lass..Li|brary's |
|00000100| 22 43 42 69 74 4d 61 70 | 22 20 61 6e 64 20 22 43 |"CBitMap|" and "C|
|00000110| 42 69 74 4d 61 70 50 61 | 6e 65 22 20 63 6c 61 73 |BitMapPa|ne" clas|
|00000120| 73 65 73 20 74 6f 20 61 | 63 63 6f 6d 6f 64 61 74 |ses to a|ccomodat|
|00000130| 65 20 63 6f 6c 6f 72 2c | 0d 09 69 6e 20 73 68 6f |e color,|..in sho|
|00000140| 72 74 2c 20 70 69 78 4d | 61 70 73 20 61 73 20 77 |rt, pixM|aps as w|
|00000150| 65 6c 6c 20 61 73 20 62 | 69 74 4d 61 70 73 2e 20 |ell as b|itMaps. |
|00000160| 20 49 20 63 61 6c 6c 20 | 74 68 65 6d 20 22 43 43 | I call |them "CC|
|00000170| 6f 6c 6f 72 42 69 74 4d | 61 70 22 20 61 6e 64 0d |olorBitM|ap" and.|
|00000180| 09 22 43 43 6f 6c 6f 72 | 42 69 74 4d 61 70 50 61 |."CColor|BitMapPa|
|00000190| 6e 65 22 2c 20 72 65 73 | 70 65 63 74 69 76 65 6c |ne", res|pectivel|
|000001a0| 79 2e 0d 09 0d 09 54 68 | 65 20 70 72 69 6e 63 69 |y.....Th|e princi|
|000001b0| 70 61 6c 20 66 6f 75 6e | 64 61 74 69 6f 6e 20 6f |pal foun|dation o|
|000001c0| 66 20 74 68 69 73 20 77 | 6f 72 6b 20 72 65 73 74 |f this w|ork rest|
|000001d0| 73 20 77 69 74 68 20 46 | 6f 72 72 65 73 74 20 54 |s with F|orrest T|
|000001e0| 61 6e 61 6b 61 27 73 0d | 09 4d 61 63 69 6e 74 6f |anaka's.|.Macinto|
|000001f0| 73 68 20 54 65 63 68 6e | 69 63 61 6c 20 4e 6f 74 |sh Techn|ical Not|
|00000200| 65 20 23 31 32 30 2e 20 | 20 4f 74 68 65 72 2c 20 |e #120. | Other, |
|00000210| 74 68 6f 75 67 68 20 6c | 65 73 73 65 72 2c 20 6b |though l|esser, k|
|00000220| 65 79 20 70 6f 69 6e 74 | 73 20 61 72 65 3a 0d 09 |ey point|s are:..|
|00000230| 0d 09 09 a5 20 69 74 20 | 77 6f 72 6b 73 20 77 68 |.... it |works wh|
|00000240| 65 6e 20 63 6f 6d 70 69 | 6c 69 6e 67 20 77 69 74 |en compi|ling wit|
|00000250| 68 20 53 79 6d 61 6e 74 | 65 63 20 43 2b 2b 2c 20 |h Symant|ec C++, |
|00000260| 61 73 20 77 65 6c 6c 20 | 61 73 20 77 69 74 68 20 |as well |as with |
|00000270| 54 48 49 4e 4b 20 43 2e | 0d 09 09 20 20 3c 20 49 |THINK C.|... < I|
|00000280| 20 68 61 76 65 20 4e 4f | 54 20 79 65 74 20 74 65 | have NO|T yet te|
|00000290| 73 74 65 64 20 74 68 65 | 73 65 20 6e 65 77 20 63 |sted the|se new c|
|000002a0| 6c 61 73 73 65 73 20 77 | 69 74 68 20 74 68 65 20 |lasses w|ith the |
|000002b0| 54 43 4c 2c 20 76 65 72 | 73 69 6f 6e 20 32 2e af |TCL, ver|sion 2..|
|000002c0| 20 3e 0d 09 09 0d 09 09 | a5 20 65 76 65 72 79 20 | >......|. every |
|000002d0| 61 74 74 65 6d 70 74 20 | 68 61 73 20 62 65 65 6e |attempt |has been|
|000002e0| 20 6d 61 64 65 20 74 6f | 20 61 76 6f 69 64 20 48 | made to| avoid H|
|000002f0| 4c 6f 63 6b 2d 69 6e 67 | 20 68 61 6e 64 6c 65 73 |Lock-ing| handles|
|00000300| 2c 20 61 6c 74 68 6f 75 | 67 68 0d 09 09 20 20 49 |, althou|gh... I|
|00000310| 20 68 61 76 65 20 62 65 | 65 6e 20 75 6e 73 75 63 | have be|en unsuc|
|00000320| 63 65 73 73 66 75 6c 20 | 69 6e 20 61 76 6f 69 64 |cessful |in avoid|
|00000330| 69 6e 67 20 74 68 69 73 | 20 77 69 74 68 20 22 6d |ing this| with "m|
|00000340| 61 63 42 69 74 73 22 2c | 20 6f 6e 65 0d 09 09 20 |acBits",| one... |
|00000350| 20 6f 66 20 73 65 76 65 | 72 61 6c 20 6e 65 77 20 | of seve|ral new |
|00000360| 69 6e 73 74 61 6e 63 65 | 20 76 61 72 69 61 62 6c |instance| variabl|
|00000370| 65 73 20 6f 66 20 6d 79 | 20 43 43 6f 6c 6f 72 42 |es of my| CColorB|
|00000380| 69 74 4d 61 70 20 63 6c | 61 73 73 2e 0d 09 09 20 |itMap cl|ass.... |
|00000390| 20 50 6c 65 61 73 65 20 | 6c 6f 6f 6b 20 61 74 20 | Please |look at |
|000003a0| 6d 79 20 73 6f 75 72 63 | 65 20 63 6f 64 65 20 56 |my sourc|e code V|
|000003b0| 45 52 59 20 63 61 72 65 | 66 75 6c 6c 79 20 74 6f |ERY care|fully to|
|000003c0| 20 73 65 65 20 69 66 20 | 79 6f 75 20 63 61 6e 0d | see if |you can.|
|000003d0| 09 09 20 20 74 68 69 6e | 6b 20 6f 66 20 61 20 77 |.. thin|k of a w|
|000003e0| 61 79 20 6f 66 20 6c 65 | 74 74 69 6e 67 20 22 6d |ay of le|tting "m|
|000003f0| 61 63 42 69 74 73 22 20 | 66 6c 6f 61 74 2e 20 20 |acBits" |float. |
|00000400| 54 68 69 73 20 70 72 6f | 62 6c 65 6d 0d 09 09 20 |This pro|blem... |
|00000410| 20 63 65 6e 74 65 72 73 | 20 77 69 74 68 69 6e 20 | centers| within |
|00000420| 6d 79 20 53 65 74 75 70 | 50 69 78 4d 61 70 20 6d |my Setup|PixMap m|
|00000430| 65 74 68 6f 64 20 69 6e | 20 77 68 69 63 68 20 49 |ethod in| which I|
|00000440| 20 64 65 2d 72 65 66 65 | 72 65 6e 63 65 0d 09 09 | de-refe|rence...|
|00000450| 20 20 22 6d 61 63 42 69 | 74 73 22 20 61 6e 64 20 | "macBi|ts" and |
|00000460| 73 74 75 66 66 20 74 68 | 65 20 72 65 73 75 6c 74 |stuff th|e result|
|00000470| 61 6e 74 20 4d 61 73 74 | 65 72 20 50 6f 69 6e 74 |ant Mast|er Point|
|00000480| 65 72 20 69 6e 74 6f 20 | 74 68 65 0d 09 09 20 20 |er into |the... |
|00000490| 70 69 78 4d 61 70 27 73 | 20 22 62 61 73 65 41 64 |pixMap's| "baseAd|
|000004a0| 64 72 22 20 66 69 65 6c | 64 2e 0d 09 09 20 20 0d |dr" fiel|d.... .|
|000004b0| 09 09 a5 20 49 20 68 61 | 76 65 20 69 6e 74 72 6f |... I ha|ve intro|
|000004c0| 64 75 63 65 64 20 61 20 | 6e 65 77 20 69 6e 73 74 |duced a |new inst|
|000004d0| 61 6e 63 65 20 76 61 72 | 69 61 62 6c 65 20 6f 66 |ance var|iable of|
|000004e0| 20 43 42 69 74 4d 61 70 | 50 61 6e 65 20 69 6e 20 | CBitMap|Pane in |
|000004f0| 6d 79 0d 09 09 20 20 43 | 43 6f 6c 6f 72 42 69 74 |my... C|ColorBit|
|00000500| 4d 61 70 50 61 6e 65 20 | 63 6c 61 73 73 20 77 68 |MapPane |class wh|
|00000510| 69 63 68 20 49 20 63 61 | 6c 6c 20 22 62 69 74 73 |ich I ca|ll "bits|
|00000520| 55 6e 64 65 72 50 61 6e | 65 22 2e 20 20 49 74 20 |UnderPan|e". It |
|00000530| 62 65 63 6f 6d 65 73 0d | 09 09 20 20 76 65 72 79 |becomes.|.. very|
|00000540| 20 75 73 65 66 75 6c 20 | 77 68 65 6e 20 64 72 61 | useful |when dra|
|00000550| 67 67 69 6e 67 20 6f 62 | 6a 65 63 74 73 20 61 72 |gging ob|jects ar|
|00000560| 6f 75 6e 64 2c 20 76 69 | 63 65 20 68 61 76 69 6e |ound, vi|ce havin|
|00000570| 67 20 74 6f 20 74 61 6b | 65 0d 09 09 20 20 61 20 |g to tak|e... a |
|00000580| 22 70 69 63 74 75 72 65 | 22 20 6f 66 20 74 68 65 |"picture|" of the|
|00000590| 20 65 6e 74 69 72 65 20 | 77 69 6e 64 6f 77 20 6f | entire |window o|
|000005a0| 72 20 73 63 72 65 65 6e | 20 61 73 20 53 79 6d 61 |r screen| as Syma|
|000005b0| 6e 74 65 63 27 73 0d 09 | 09 20 20 41 72 74 20 43 |ntec's..|. Art C|
|000005c0| 6c 61 73 73 20 64 65 6d | 6f 20 64 6f 65 73 2e 20 |lass dem|o does. |
|000005d0| 20 49 20 6d 75 73 74 20 | 61 64 6d 69 74 2c 20 68 | I must |admit, h|
|000005e0| 6f 77 65 76 65 72 2c 20 | 74 68 61 74 20 49 20 68 |owever, |that I h|
|000005f0| 61 76 65 20 6e 6f 74 0d | 09 09 20 20 59 45 54 20 |ave not.|.. YET |
|00000600| 66 69 67 75 72 65 64 20 | 6f 75 74 20 68 6f 77 20 |figured |out how |
|00000610| 74 6f 20 75 70 64 61 74 | 65 20 74 68 69 73 20 22 |to updat|e this "|
|00000620| 62 69 74 73 55 6e 64 65 | 72 50 61 6e 65 22 20 43 |bitsUnde|rPane" C|
|00000630| 43 6f 6c 6f 72 42 69 74 | 4d 61 70 0d 09 09 20 20 |ColorBit|Map... |
|00000640| 77 69 74 68 20 61 20 63 | 68 61 6e 67 65 20 69 6e |with a c|hange in|
|00000650| 20 63 6f 6c 6f 72 20 64 | 65 70 74 68 2c 20 66 6f | color d|epth, fo|
|00000660| 72 20 65 78 61 6d 70 6c | 65 2c 20 77 68 65 6e 20 |r exampl|e, when |
|00000670| 75 73 69 6e 67 20 74 68 | 65 20 70 6f 70 75 6c 61 |using th|e popula|
|00000680| 72 0d 09 09 20 20 22 53 | 77 69 74 63 68 2d 41 2d |r... "S|witch-A-|
|00000690| 52 6f 6f 22 20 46 4b 45 | 59 2e 20 20 50 6c 65 61 |Roo" FKE|Y. Plea|
|000006a0| 73 65 20 72 65 66 65 72 | 20 74 6f 20 6d 79 20 55 |se refer| to my U|
|000006b0| 70 64 61 74 65 20 6d 65 | 74 68 6f 64 20 66 6f 72 |pdate me|thod for|
|000006c0| 0d 09 09 20 20 66 75 72 | 74 68 65 72 20 69 6e 73 |... fur|ther ins|
|000006d0| 69 67 68 74 2e 20 20 42 | 79 20 74 68 65 20 77 61 |ight. B|y the wa|
|000006e0| 79 2c 20 55 70 64 61 74 | 65 20 77 6f 72 6b 73 20 |y, Updat|e works |
|000006f0| 6a 75 73 74 20 66 69 6e | 65 20 77 69 74 68 0d 09 |just fin|e with..|
|00000700| 09 20 20 22 69 74 73 42 | 69 74 4d 61 70 22 2c 20 |. "itsB|itMap", |
|00000710| 74 68 65 20 6f 6e 2d 74 | 68 65 2d 74 6f 70 20 43 |the on-t|he-top C|
|00000720| 42 69 74 4d 61 70 2e 0d | 09 09 20 20 0d 09 09 a5 |BitMap..|.. ....|
|00000730| 20 49 20 68 61 76 65 20 | 6d 61 64 65 20 6d 75 63 | I have |made muc|
|00000740| 68 20 6d 6f 72 65 20 70 | 72 6f 6c 69 66 69 63 20 |h more p|rolific |
|00000750| 63 6f 6d 6d 65 6e 74 73 | 20 74 68 72 6f 75 67 68 |comments| through|
|00000760| 6f 75 74 20 74 68 65 20 | 73 6f 75 72 63 65 2e 0d |out the |source..|
|00000770| 09 09 20 20 49 20 74 72 | 75 6c 79 20 68 6f 70 65 |.. I tr|uly hope|
|00000780| 20 74 68 61 74 20 74 68 | 65 79 20 61 72 65 20 73 | that th|ey are s|
|00000790| 75 66 66 69 63 69 65 6e | 74 20 74 6f 20 67 75 69 |ufficien|t to gui|
|000007a0| 64 65 20 79 6f 75 2e 0d | 09 09 20 20 0d 09 45 6e |de you..|.. ..En|
|000007b0| 6a 6f 79 20 21 21 21 0d | 09 0d 09 09 09 09 09 09 |joy !!!.|........|
|000007c0| 09 09 09 4a 6f 68 6e 20 | 41 2e 20 4c 6f 76 65 2c |...John |A. Love,|
|000007d0| 20 49 49 49 0d 09 09 09 | 09 09 09 09 09 09 2d 2d | III....|......--|
|000007e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0d |--------|-------.|
|000007f0| 09 09 09 09 09 09 09 09 | 09 36 34 31 33 20 57 79 |........|.6413 Wy|
|00000800| 6e 67 61 74 65 20 44 72 | 69 76 65 0d 09 09 09 09 |ngate Dr|ive.....|
|00000810| 09 09 09 09 09 53 70 72 | 69 6e 67 66 69 65 6c 64 |.....Spr|ingfield|
|00000820| 2c 20 56 41 2e 20 20 20 | 32 32 31 35 32 0d 09 09 |, VA. |22152...|
|00000830| 09 09 09 09 09 09 09 0d | 09 09 09 09 09 09 09 09 |........|........|
|00000840| 09 41 6d 65 72 69 63 61 | 20 4f 6e 6c 69 6e 65 20 |.America| Online |
|00000850| 20 4a 6f 68 6e 20 4c 6f | 76 65 0d 09 09 09 09 09 | John Lo|ve......|
|00000860| 09 09 09 09 28 37 30 33 | 29 20 35 36 39 2d 32 32 |....(703|) 569-22|
|00000870| 39 34 20 20 3c 79 6f 75 | 72 20 6e 69 63 6b 65 6c |94 <you|r nickel|
|00000880| 3e 0d 2a 2f 0d 0d 0d 0d | 2f 2a 2a 20 65 6e 64 3a |>.*/....|/** end:|
|00000890| 20 22 43 6f 6c 6f 72 42 | 69 74 4d 61 70 2e 6e 6f | "ColorB|itMap.no|
|000008a0| 74 65 22 20 2a 2a 2f 0d | 00 00 00 00 00 00 00 00 |te" **/.|........|
|000008b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000900| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00000910| 7e 6c 60 0e 3d 6e 39 3d | b2 7a 3d 6e 15 0b 2d 6b |~l`.=n9=|.z=n..-k|
|00000920| 00 9c 58 2e 2e f3 19 03 | 58 1d 30 10 54 40 4f 5b |..X.....|X.0.T@O[|
|00000930| 12 20 20 43 6f 6c 6f 72 | 42 69 74 4d 61 70 2e 6e |. Color|BitMap.n|
|00000940| 6f 74 65 6c 02 00 00 00 | 54 45 58 54 4b 41 48 4c |otel....|TEXTKAHL|
|00000950| 00 00 54 45 58 54 4b 41 | 48 4c 00 00 01 ba 01 40 |..TEXTKA|HL.....@|
|00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 00 00 a8 b1 f4 38 00 00 | 08 28 00 00 01 7e fb 02 |.....8..|.(...~..|
|00000980| 06 22 a6 ae 31 28 00 07 | 28 80 21 9c 7e 67 32 2b |."..1(..|(.!.~g2+|
|00000990| 57 40 67 58 7e 67 54 7e | 67 50 7e 22 64 00 94 7e |W@gX~gT~|gP~"d..~|
|000009a0| 22 00 da 51 40 22 00 e8 | 04 40 cd 08 22 01 12 04 |"..Q@"..|.@.."...|
|000009b0| 40 2d 22 01 34 0c 2b 01 | 3c 41 ec 1c 3d 50 e1 70 |@-".4.+.|<A..=P.p|
|000009c0| 08 96 e1 9f 35 01 2a 41 | ec 25 64 e6 21 5b eb 7e |....5.*A|.%d.![.~|
|000009d0| 03 e6 30 80 0c 01 12 37 | 16 db 0a 8e 41 ec fb 60 |..0....7|....A..`|
|000009e0| 1f 3c 0d 37 fb 1e 0d 07 | 21 9c c0 bc 00 2b c9 3c |.<.7....|!....+.<|
|000009f0| 37 a9 54 28 9f 22 00 e2 | 20 54 1d de 9d 8e 50 88 |7.T(."..| T....P.|
|00000a00| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000a10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a20| 00 00 00 00 00 00 00 06 | 00 04 00 2a 00 18 01 dd |........|...*....|
|00000a30| 02 7d 00 38 00 3e 01 d6 | 02 40 a9 d2 d5 a0 00 00 |.}.8.>..|.@......|
|00000a40| 07 da 00 00 07 da 00 00 | 00 00 00 00 00 00 01 00 |........|........|
|00000a50| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 c0 07 94 |...L...L|...2....|
|00000a60| 11 a2 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|00000a70| 00 0a 03 ed ff ff 00 00 | 00 00 00 c0 06 84 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+